var LRU = require('lru-cache');

let api
if (process.__API__) {
  api = process.__API__
} else {
  api = process.__API__ = {
    api: '/',
    cached: LRU({
      max: 1000,
      maxAge: 1000 * 60 * 15
    }),
    cachedItem: {}
  }
}

module.exports = api